package com.linsen.core.common.exception;

import lombok.Getter;

/**
 * @author zhaoyong
 * @date 2023/02/20
 */
@Getter
public class RequestBusinessException extends BusinessException {
    private final static String DEFAULT_MESSAGE = "内部服务器错误";

    private Object data;

    public RequestBusinessException() {
        super(DEFAULT_MESSAGE);
    }

    public RequestBusinessException(String message) {
        super(message);
        this.data = null;
    }

    public RequestBusinessException(Object data, String message) {
        super(message);
        this.data = data;
    }

    public RequestBusinessException(String message, Object... args) {
        super(message, args);
    }

    public RequestBusinessException(Object data, String message, Object... args) {
        super(message, args);
        this.data = data;
    }
}
